package com.zhuiYun.project.api.slideshow.service.serviceImpl;

import com.zhuiYun.project.api.order.model.CommorderModel;
import com.zhuiYun.project.api.slideshow.entity.Carousel;
import com.zhuiYun.project.api.slideshow.mapper.carouseMapper;
import com.zhuiYun.project.api.slideshow.model.CarouselModel;
import com.zhuiYun.project.api.slideshow.service.carouselService;
import com.zhuiYun.project.common.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

@Service
public class carouselServiceImpl  implements carouselService {


    @Autowired
    carouseMapper  carousemapper;

    @Override
    public CommonResult carousellist(CarouselModel carouselModel) {
        Example example = new Example(Carousel.class);
        List<Carousel> Carousel = carousemapper.selectByExample(example);
        return CommonResult.ok(Carousel);
    }
}
